message(${CMAKE_CURRENT_SOURCE_DIR})


# 简单粗暴的把源码搜集起来。按顺序，分别是实现文件，头文件，界面文件，资源文件
file(GLOB_RECURSE SOURCES "*.cpp")
file(GLOB_RECURSE HEADERS "*.h")
file(GLOB_RECURSE FORMS "*.ui")
file(GLOB_RECURSE RESOURCES "*.qrc")


add_executable(${TARGET_NAME}   ${SOURCES} ${HEADERS} ${FORMS} ${RESOURCES}  )
target_include_directories(${TARGET_NAME} PUBLIC "src/")
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE $ENV{INCLUDE})

target_link_libraries(${TARGET_NAME} ${OpenCV_LIBS})

#target_include_directories(${TARGET_NAME} PUBLIC ${3rd_lib_INCLUDE_DIRS} )
#target_link_libraries(${TARGET_NAME} ${3rd_lib_LIBRARIES} )
# 在CMake中使用Qt最快捷的方式，一句代码搞定
qt5_use_modules(${TARGET_NAME} ${QT})

